#
# build example and install to prefix/bin directory if needed
#

unset(COMPONENT_LIBRARY)
if(${BUILD_SHARED_LIBS} STREQUAL "ON")
    set(COMPONENT_LIBRARY ${COMPONENT_NAME})
else()
    set(COMPONENT_LIBRARY ${COMPONENT_NAME}_static)
endif()

add_executable(qlist list.c)
install(FILES list.c DESTINATION example/${PROJECT_NAME})

add_executable(single_list single_list.c)
install(FILES single_list.c DESTINATION example/${PROJECT_NAME})

add_executable(simple_queue simple_queue.c)
install(FILES simple_queue.c DESTINATION example/${PROJECT_NAME})

add_executable(tail_queue tail_queue.c)
install(FILES tail_queue.c DESTINATION example/${PROJECT_NAME})

add_executable(circle_queue circle_queue.c)
install(FILES circle_queue.c DESTINATION example/${PROJECT_NAME})
